package com.example.testproject;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.widget.SimpleCursorAdapter.ViewBinder;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class Screen11 extends Activity implements View.OnClickListener {
	String name,email,phone;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.screen11);
        Button new_user = (Button) findViewById(R.id.new_user);
		
        Intent prev = getIntent();
        name = prev.getExtras().getString("name");
        email = prev.getExtras().getString("email");
        phone = prev.getExtras().getString("phone");

		Button puneTab01 = (Button) findViewById(R.id.puneTab01);
		Button puneTab02 = (Button) findViewById(R.id.puneTab02);
		Button puneTab03 = (Button) findViewById(R.id.puneTab03);
		Button puneTab04 = (Button) findViewById(R.id.puneTab04);
		puneTab01.setOnClickListener(this);
		puneTab02.setOnClickListener(this);
		puneTab03.setOnClickListener(this);
		puneTab04.setOnClickListener(this);
		
		new_user.setOnClickListener(this);
		
		
    }
    	 
		
		
		       
 
                	 public void onClick(View v) {
                	        switch (v.getId()) {
                	        case R.id.new_user:
                	        	 Intent intent = new Intent(/*FirstActivity.this*/ v.getContext(), Screen6.class);
                	        	 intent.putExtra("name", name);
                				   intent.putExtra("email", email);
                				   intent.putExtra("phone", phone);
                				    startActivity(intent);

                	            break;
                	                        	        case R.id.puneTab01:
                	        	Intent intent2 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen1.class);
                			    startActivity(intent2);

                	            break;
                	        case R.id.puneTab02:
                	        	Intent intent3 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen8.class);
                			    startActivity(intent3);

                	            break;
                	        case R.id.puneTab03:
                	        	Intent intent4 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen10.class);
                			    startActivity(intent4);

                	            break;
                	        case R.id.puneTab04:
                	        	Intent intent5 = new Intent(/*FirstActivity.this*/ v.getContext(), Screen9.class);
                			    startActivity(intent5);

                	            break;


                	        default:
                	            break;
                	        }
                 }
		
    
   
}

